package com.scau.hwadee.examination.mapper;

import com.scau.hwadee.examination.entity.Nationwidemajor;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *@author YHX
 *@date 2019/7/29  9:02
 *@description
 */
public interface NationwidemajorMapper {
    int deleteByPrimaryKey(String nmId);

    int deleteNationalMajorList(@Param("list") List<Nationwidemajor> nationwidemajors);

    int insert(Nationwidemajor record);

    int insertList(List<Nationwidemajor> nationwidemajors);

    int insertSelective(Nationwidemajor record);

    Nationwidemajor selectByPrimaryKey(String nmId);

    int updateByPrimaryKeySelective(Nationwidemajor record);

    int updateByPrimaryKey(Nationwidemajor record);

    List<Nationwidemajor> selectAllNationwidemajor2ExportExcel();

    List<Nationwidemajor> selectAllNationwidemajor(@Param("pageNum") int pageNum,
                                                   @Param("pageSize") int pageSize);
}